import { login } from "../../utils/asyncWx.js";
import { request } from "../../request/index.js";


Page({

    //获取用户信息
    async  handlegetuserinfo(e) {

        const { encryptedData, rawData, iv, signature } = e.detail
        const { code } = await login()
        const loginparams = { encryptedData, rawData, iv, signature, code }
        let res = await request({ url: '/users/wxlogin', data: loginparams, method: 'post' })
        console.log(res);


    }

})